wav file to array python

31

from scipy.io import wavfile

#To read your file ('filename.wav'), simply do

output = wavfile.read('filename.wav')
from scipy.io import wavfile
#To read your file ('filename.wav'), simply do

output = wavfile.read('filename.wav')
#This will output a tuple (which I named 'output'):

#output[0], the sampling rate
#output[1], the sample array you want to analyze

Comments

Submit
0 Comments